package com.baixiaowen.xiaoaointerview.大厂笔试_白板面试篇.解读反射_代理_AOP.annotation;

@Aspect(type = TimeUsageAspect.class)
public class Order implements IOrder {

    int state = 0;

    @Override
    public void pay() throws InterruptedException {
        Thread.sleep(50);
        this.state = 1;
    }

    @Override
    public void show() {
        System.err.println("order status: " + this.state);
    }
}
